package com.WISSC.service;

import com.WISSC.bean.*;
import com.WISSC.bean.layuiBean.ResultPage;
import com.WISSC.bean.layuiBean.VoPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 赛事个人信息表 服务类
 * </p>
 *
 * @author 张凯
 * @since 2019-05-06
 */
public interface IndividualEventService extends IService<IndividualEvent> {


    /**
     * @param page
     * @param limit
     * @param name
     * @param idNumber
     * @param combat
     * @param raceAge
     * @param city
     * @return 查询 + 分页
     */
    ResultPage<IndividualEvent> selectMyPage(int page, int limit, String name,
                                             Integer idNumber, Long birth,
                                             String combat, Integer raceAge,
                                             String city,HttpSession session,
                                             boolean admin);


    /**
     *
     * @param individualEvent
     * @param session1
     * @return 个人信息登陆
     */
    boolean login(IndividualEvent individualEvent, HttpSession session1);

    /**
     *
     * @param
     * @return 个人赛事 通过身份证号
     */
     //List<IndividualEvent> selectByidNumber(String idNumber);

    /**
     *
     * @param individualEvent
     * @return 个人信息添加
     */
    String individualEventInsert(String param2, IndividualEvent individualEvent);


    ResultPage<IndividualEvent> selectMyPage(HttpSession session, VoPage voPage);

    IndividualEvent select(String idNumber);

    /**
     * @param
     * @return 获取图片
     */
    List<IndividualEvent> selectByIdNumber(String idNumber);

    /**
     * @param city
     * @param idNumber
     * @return 排名
     */
    List<IndividualEvent> country(String city, String idNumber);
    Map getTeamCity(Long id);


    ResultPage<IndividualEvent> listIndividualEvent(VoPage voPage, String name, String idNumber);

    Map updateindividualEvent(IndividualEvent individualEvent, String param2);

    List<IndividualEvent> getIndividualEvent(String idNumber);

}
